using System;
using System.Collections.Generic;
using System.Text;
using DAL;
using Objects;

namespace BAL
{
    public class BALTinhThanh
    {
         BALTinhThanh _dal;
        public BALTinhThanh()
        {
            _dal = new BALTinhThanh();
        }

        public static int Insert_TinhThanh(String TenTinhThanh,int Status, int SapXep)
        {
            DALTinhThanh _dal = new DALTinhThanh();
            return _dal.Insert_TinhThanh(TenTinhThanh,Status,SapXep);
        }

        public static int Update_TinhThanh(int id, String TenTinhThanh,int Status, int SapXep)
        {
            DALTinhThanh _dal = new DALTinhThanh();
            return _dal.Update_TinhThanh(id, TenTinhThanh,Status, SapXep);
        }

        public static int Delete_TinhThanh(int id)
        {
            DALTinhThanh _dal = new DALTinhThanh();
            return _dal.Delete_TinhThanh(id);
        }

        public static List<TinhThanh> GetAllItem()
        {
            DALTinhThanh _dal = new DALTinhThanh();
            return _dal.GetAllItem();
        }

        public static TinhThanh GetByIdTinhThanh(int idTinhThanh)
        {
            DALTinhThanh _dal = new DALTinhThanh();
            return _dal.GetByIdTinhThanh(idTinhThanh);
        }
    }
}
